package org.example.springbook.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/text")
@RestController
public class TestController {
    @RequestMapping("/t1")
    public String t1(){
//        int a=10/0;
        return "t1";
    }
    @RequestMapping("/t2")
    public int t2(){
        String aa="abcdef";
        return aa.length();
    }
    @RequestMapping("/t3")
    public int t3(){
        int[] a={1,2,3};
        int val=a[2];
        return val;
    }
}
